#include "TcpServer.hpp"
#include <memory>
void Usage(std::string proc)
{
    std::cout<<"\n\rUsage:"<<proc<<" serverport[1024+]"<<std::endl;
}
//server serverport
int main(int argc,char * argv[])
{
  
    if(argc!=2)
    {
        Usage(argv[0]);
        exit(1);
    }
    uint16_t port=std::stoi(argv[1]);
     lg.Enable(CLASSFILE);

    std::unique_ptr<TcpServer> ptr(new TcpServer(port));
    ptr->Init();
    ptr->Start();
    return 0;
}